package com.hema.auction;

import android.app.Application;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;

import com.apkfuns.logutils.LogLevel;
import com.apkfuns.logutils.LogUtils;
import com.reyun.sdk.TrackingIO;
import com.tencent.bugly.crashreport.CrashReport;
import com.hema.auction.utils.Constant;

import cn.jpush.android.api.JPushInterface;

/**
 * author by john
 */
public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        LogUtils.getLogConfig()
                .configAllowLog(BuildConfig.DEBUG)
                .configTagPrefix(getString(R.string.app_name))
                .configShowBorders(true)
                .configFormatTag("%d{HH:mm:ss:SSS} %t %c{-5}")
                .configLevel(LogLevel.TYPE_VERBOSE);
//        JAnalyticsInterface.setDebugMode(BuildConfig.DEBUG);
        JPushInterface.setDebugMode(BuildConfig.DEBUG);
        CrashReport.initCrashReport(getApplicationContext(), "900059311", BuildConfig.DEBUG);
//        JAnalyticsInterface.stopCrashHandler(this);
        JPushInterface.init(this);
//        JAnalyticsInterface.init(this);

    }

}
